package com.ruoyi.users.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户Top10歌曲对象 personal_top_10_songs
 * 
 * @author lin
 * @date 2025-03-10
 */
public class UserTopSongs extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Long userId;

    /** 歌曲ID */
    @Excel(name = "歌曲ID")
    private Long trackId;

    /** 播放占比 */
    @Excel(name = "播放占比")
    private Float totalPlayratio;

    @Excel(name = "歌曲名")
    private String trackTitle; // 新增字段
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setTrackId(Long trackId) 
    {
        this.trackId = trackId;
    }

    public Long getTrackId() 
    {
        return trackId;
    }
    public void setTotalPlayratio(Float totalPlayratio)
    {
        this.totalPlayratio = totalPlayratio;
    }

    public Float getTotalPlayratio()
    {
        return totalPlayratio;
    }

    public String getTrackTitle() {
        return trackTitle;
    }

    public void setTrackTitle(String trackTitle) {
        this.trackTitle = trackTitle;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("userId", getUserId())
            .append("trackId", getTrackId())
            .append("totalPlayratio", getTotalPlayratio())
            .append("trackTitle", getTrackTitle()) // 新增字段
            .toString();
    }
}
